let key = getUrlParams('key')

// console.log(key);

$.get('/posts/search/' + key, function (response) {
    // console.log(response);

    /* 待完成搜素结果的提示 */

    let html = template('searchTpl',
        //向模板传入文章数据,及标题
        { data: response })
    $('.new').html(html)

})